using System;
using System.Collections.Generic;
namespace MicroMsg.Common.Event
{
	public sealed class BaseEventArgs
	{
		public EventConst mEventID;
		public object mObject;
		public object mObject1;
		public BaseEventArgs()
		{
		}
		public BaseEventArgs(EventConst eventConst_0, object object_0)
		{
			this.mEventID = eventConst_0;
			this.mObject = object_0;
		}
		public BaseEventArgs(EventConst eventConst_0, object object_0, object obj1)
		{
			this.mEventID = eventConst_0;
			this.mObject = object_0;
			this.mObject1 = obj1;
		}
		public List<T> getListObject<T>()
		{
			if (!this.checkType<List<object>>())
			{
				return null;
			}
			List<object> list = this.mObject as List<object>;
			if (list != null && list.get_Count() > 0)
			{
				List<T> list2 = new List<T>();
				using (List<object>.Enumerator enumerator = list.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						object current = enumerator.get_Current();
						if (current is T)
						{
							list2.Add((T)((object)current));
						}
					}
				}
				return list2;
			}
			return null;
		}
		public bool checkType<T>()
		{
			return this.mObject != null && this.mObject is T;
		}
	}
}
